package com.personal.controller.result;

import javax.persistence.criteria.CriteriaBuilder;

/**
 * @projectName: smartCommunity_springboot
 * @package: com.personal.controller
 * @className: code
 * @author: bong~
 * @description: 定义返回码信息
 * @date: 2023/8/8 14:29
 * @version: 1.0
 */

public class BackCode {

    /*按增删查改顺序，定义不同操作成功或失败的返回码*/
    public static final Integer SAVE_OK=20011;
    public static final Integer DELETE_OK=20021;
    public static final Integer GET_OK=20031;
    public static final Integer UPDATE_OK=20041;

    public static final Integer SAVE_ERR=20010;
    public static final Integer DELETE_ERR=20020;
    public static final Integer GET_ERR=20030;
    public static final Integer UPDATE_ERR=20040;

    //    额外补充
    public static final Integer SYSTEM_ERR=59999;
}
